{question.label} {question.description} {question.type === "textarea" ? ( handleChange(question.id, event.target.value) } placeholder={question.placeholder} value={value} /> ) : null} {question.type === "text" ? ( handleChange(question.id, event.target.value) } placeholder={question.placeholder} type="text" value={value} /> ) : null} {question.type === "number" ? ( handleChange(question.id, event.target.value) } placeholder={question.placeholder} type="number" value={value} /> ) : null} {question.type === "date" ? ( handleChange(question.id, event.target.value) } type="date" value={value} /> ) : null}